/**
 * 车辆排队
 * @author xiaoxujs
 */

import { Button, Input, Select } from "antd";
import { ActionModuleBox } from "../../style";
import { useEffect, useState } from "react";
import { handleGetDictionaryItem } from "../../../../assets/fun/DictionaryItem";
import { ISelectList } from "../../../../type/antd";
import { SearchProps } from "antd/es/input";
import DengjiAddChangeModule from '../DengjiAddChangeModule'

const { Search } = Input;

const ActionModule = () => {
    const [addChangeModule, setAddChangeModule] = useState(false); //添加 编辑车辆

    const [carColorList, setCarColorList] = useState<ISelectList[]>([]); // 车辆类型字典项

    useEffect(() => {
        let carArr = handleGetDictionaryItem('CPYS');
        let carArr1: ISelectList[] = []
        carArr.forEach(element => {
            carArr1.push({
                value: element.label,
                label: element.label
            })
        });
        setCarColorList(carArr1);

        return () => {
        }
    }, [])
    const handleChange = (value: string) => {
        console.log(`selected ${value}`);
    };

    const selectAfter = (
        <Select
            style={{ width: '6rem' }}
            onChange={handleChange}
            options={carColorList}
        />
    );
    const onSearch: SearchProps['onSearch'] = (value, _e, info) => console.log(info?.source, value);
    return 
}

export default ActionModule;